#ifndef T_PACKINFO_H
#define T_PACKINFO_H

#include "ElaScrollPage.h"

class ElaScrollPageArea;
class ElaLineEdit;

#define T_PackInfoIns T_PackInfo::Instance()

class T_PackInfo : public ElaScrollPage
{
    Q_OBJECT
public:
    T_PackInfo(QWidget *parent = nullptr);
    ~T_PackInfo();

    static T_PackInfo * Instance();

public:
    void clearInfo();
    void flushPackInfo();

private:
    void initUI();
    void initPackInfo();

private slots:
    void on_flushPackInfo(int c_num,int sum_num,int group_num);

private:
    ElaScrollPageArea *m_packInfoArea{nullptr};

    ElaLineEdit *m_cLe{nullptr};
    ElaLineEdit *m_blockNumLe{nullptr};
    ElaLineEdit *m_groupNumLe{nullptr};

    //result
    ElaLineEdit *m_standerdVol{nullptr};
    ElaLineEdit *m_voltageRange{nullptr};
    ElaLineEdit *m_c_b_way{nullptr};
    ElaLineEdit *m_sumkWh{nullptr};
    ElaLineEdit *m_sumWeight{nullptr};
    ElaLineEdit *m_continueOuterKW{nullptr};
    ElaLineEdit *m_outer_10_kw{nullptr};
    ElaLineEdit *m_continueInterKW{nullptr};
    ElaLineEdit *m_pack_l_w_h{nullptr};
};

#endif // T_PACKINFO_H
